
<table class="tec-ui-test" style="width: 98%" align="center" border="0" cellpadding="2" cellspacing="0"
	style="border-style:none; margin-top: 2px; font-size:14px;">
	<tr>
		<td colspan="2" align="center">
		<h2>报价信息</h2>
		</td>
	</tr>
	<tr>
		<td>第{[$result.id]}号（{[$result.oper_t]}）</td>
		<td align="right">填单日期：{[$result.createtime|date_format:'%Y-%m-%d']}</td>
	</tr>
</table>

<table class="tec-ui-td-normal">
	<tr>
		<td width="20%" align="right">编号：</td>
		<td width="30%">{[$result.code]}</td>
		<td width="20%" align="right">状态：</td>
		<td width="30%">{[$result.status_t]}</td>
	</tr>
	<tr>
		<td align="right">分类：</td>
		<td>{[$result.category_t]}</td>
		<td align="right">业务员：</td>
		<td>{[$result.applicant_t]}</td>
	</tr>
	<tr>
		<td align="right">产品套数：</td>
		<td>{[$result.num]}</td>
		<td align="right">报价员：</td>
		<td>{[$result.emp_t]}</td>
	</tr>
	<tr>
		<td align="right">紧急程度：</td>
		<td>{[$result.urgent_t]}</td>
		<td align="right">要求日期：</td>
		<td>{[$result.date]}</td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3">{[$result.content|nl2br]}</td>
	</tr>
	<tr>
		<td align="right">创建时间：</td>
		<td>{[$result.createtime]}</td>
		<td align="right">更新时间：</td>
		<td>{[$result.modifytime]}</td>
	</tr>
</table>

<table style="margin-top: 10px">
	<tr>
		<th width="40">序号</th>
		<th>流水号</th>
		<th>事由</th>
		<th>类型</th>
		<th>币种</th>
		<th>金额</th>
		<th>备注</th>
		<th>更新时间</th>
	</tr>
	{[foreach name=outer key=key item=item from=$result.item]} 
	{[assign var="no" value="`$key+1`"]} 
	{[assign var="amount" value="`$amount+$item.amount`"]} 
	{[assign var="rmb" value="`$rmb+$item.rmb`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td>{[$no]}</td>
		<td>{[$item.id]}</td>
		<td>{[$item.name]}</td>
		<td>{[$item.type_t]}</td>
		<td>{[$item.currency_t]}
		<td>{[$item.amount|money]}</td>
		
		<td id="item_content_{[$no]}">{[$item.content|truncate:21:"...":true]}</td>
		<td>{[$item.modifytime]}</td>		
	</tr>
	{[/foreach]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td colspan="4"></td>
		<td>合计</td>
		<td>{[$amount|money]}</td>
		<td colspan="2"></td>
	</tr>
</table>
